package units 
{
	import flash.filters.GlowFilter;
	
	public class FilterUnit extends GraphicUnit 
	{
		
		private var filterArray:Array = new Array();
		
		protected function refreshArray():void
		{
			filters = filterArray;
		}
		
		protected function clearArray(n:Number):void
		{
			filterArray.splice(n, filterArray.length - n);
		}
	
		protected function addGlowFilter(color:uint, alpha:Number, blur:Number, inner:Boolean, knockout:Boolean):void
		{
			var g:GlowFilter = new GlowFilter(color, alpha, blur, blur, 2, 1, inner, knockout);
			filterArray.push(g);
		}
		
	}

}